<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div data-th-replace="common/functionDepict"></div>
        <div>
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="row">
                        <div class="col-sm-7">
                            <a th:href="@{/admin/course/cou/selectCourseList?type={type}&selectType={selectType}&packageId={packageId}&classId={classId}(type=${type},selectType=${selectType},packageId=${packageId},classId=${classId})}">
                                <span>
                                    <button class="btn btn-white" data-toggle="tooltip" data-placement="top" title="" data-original-title="刷新课程列表">
                                        <i class="fa fa-refresh"></i> 刷新
                                    </button>
                                </span>
                            </a>
                        </div>
                        <div class="col-sm-3">
                            <div class="input-group opSearchBox">
                                <form class="search-form" id="search-form">
                                    <input type="hidden" name="type" th:value="${type}"/>
                                    <input type="hidden" name="selectType" th:value="${selectType}"/>
                                    <input type="hidden" name="packageId" th:value="${packageId}"/>
                                    <input type="hidden" name="classId" th:value="${classId}"/>
                                    <input type="hidden" name="courseTypeKey" th:value="${courseTypeKey}"/>
                                    <div class="input-group opSearchBox">
                                        <input placeholder="请输入想要查找课程名称" class="input-sm form-control vam common-search-word" type="text" name="courseName">
                                        <span class="input-group-btn"><button type="button" class="btn btn-sm btn-primary vam" id="btn1">搜索</button> </span>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div class="col-sm-2 text-center">
                            <a href="javascript:void(0)" id="advSearchshowBtn" class="pt10 inlineBlock vam">高级搜索操作 <i class="fa fa-angle-double-down"></i></a>
                        </div>
                    </div>
                </div>
                <div class="oc-advSearch-box">
                    <div class="row">
                        <div class="col-sm-12">
                            <div class="pt10">
                                <form role="form" class="form-inline search-form">
                                    <input type="hidden" name="type" th:value="${type}"/>
                                    <input type="hidden" name="selectType" th:value="${selectType}"/>
                                    <input type="hidden" name="packageId" th:value="${packageId}"/>
                                    <input type="hidden" name="classId" th:value="${classId}"/>
                                    <div class="checkbox i-checks">
                                    <label style="padding-left: 15px"><input type="checkbox" id="select-all-course"> <i></i> 全选</label>
                                    </div>
                                    &nbsp;
                                    <input type="hidden" name="subjectIds" id="subjectIds"/>
                                    <div id="subject-box" class="form-group form-box"></div>
                                    <select th:if="${type} !=3" class="form-control mb10" name="courseTypeKey">
                                        <option value="">课程类型</option>
                                        <th:block th:each="courseType : ${courseTypeList}">
                                            <option th:value="${courseType.key}" th:text="${courseType.value}"></option>
                                        </th:block>
                                    </select>
                                    <div class="form-group form-box" style="margin-bottom: 10px">
                                        <input placeholder="请输入想要查找课程名称" class="form-control common-search-word" type="text">
                                    </div>
                                    <button class="btn btn-w-m btn-primary" type="button" style="margin-bottom: 10px" id="btn2">搜索</button>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="oc-ibox-content" id="course-list-context"></div>
            </div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/admin/business/course/cou/select_course_list.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script th:inline="javascript">
        var selectType = [[${selectType}]];
    </script>
</body>
</html>